
import {
	createSSRApp
} from 'vue'
import App from './App'
import share from '@/config/share.js'

import uviewPlus from '@/uni_modules/uview-plus'
import {
	createPinia
} from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
export function createApp() {

	const app = createSSRApp(App)
	const pinia = createPinia()
	pinia.use(piniaPluginPersistedstate)
	app.use(pinia)
	app.use(uviewPlus)
	app.mixin(share)
	return {
		app
	}
}
